#ifndef WIDGETTEXTFIELD_H
#define WIDGETTEXTFIELD_H

#include "Widget.h"
#include <SFML/Graphics.hpp>


class WidgetTextField : public Widget
{
    public:
        WidgetTextField(int, int, int, int);
        void setNumeric(bool);
        void onEvent(sf::Event*);
        void onRender(sf::RenderWindow*);
        void updateGfx();
        std::string getText();
        int getInt();
        virtual ~WidgetTextField();
    protected:
        sf::Text text;
        sf::RectangleShape box;
        bool hasFocus;
        bool numeric;
        int w, h;
};

#endif // WIDGETTEXTFIELD_H
